//
//  AMTestViewController.m
//  AMwb
//
//  Created by zhc on 15/11/28.
//  Copyright © 2015年 zhc. All rights reserved.
//

#import "AMTestViewController.h"
#import "AMtest2ViewController.h"

@interface AMTestViewController ()

@end

@implementation AMTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.navigationItem.title=@"a";
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

   
    AMtest2ViewController *vc2=[[AMtest2ViewController alloc]init];
    
    vc2.title=[NSString stringWithFormat:@"hahhahhahahahaha"];
    
    
    
    [self.navigationController pushViewController:vc2 animated:YES];


}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
